import axios from 'axios'
export default {
    namespaced: true,
    state: {
        waitFilms: []
    },
    mutations: {
        getWaitFilmsData(state,waitFilms) {
            state.waitFilms = waitFilms.data.coming
        }
    },
    actions: {
        getWaitFilmsData({ commit }) {
            axios({
                url: `/mmdb/movie/v1/list/wish/order/coming.json?ci=20&limit=30&offset=0`,
                methods: 'GET',
            }).then(res => {
                commit('getWaitFilmsData',res.data)
            })
        }
    }

}